package cn.Liujialin.org.mapper;

import cn.Liujialin.basic.mapper.BeanMapper;
import cn.Liujialin.org.domain.Employee;
import cn.Liujialin.org.query.EmployeeQuery;

import java.util.List;


public interface EmployeeMapper extends BeanMapper<Employee> {
    void save(Employee employee);

    void del(Long id);

    void update(Employee employee);

    Employee findById(Long id);

    List<Employee> findByAll();
    /*分页查询*/
    Long queryCount(EmployeeQuery query);
    List<Employee> queryData(EmployeeQuery query);
    //批量
    void patchDelete(List<Long> ids);


    //通过用户名查询店长是否存在
    Employee findByUsername(String username);
    ////通过ID查找用户也就是Employee表
    Employee findByLoginInfoId(Long id);
}
